package com.leo.erp.service;

import javax.servlet.http.HttpServletRequest;

import com.leo.erp.dto.LogExecution;
import com.leo.erp.entity.Log;
import com.leo.erp.util.GlobalRuntimeException;

public interface LogService {
	
	/**
	 * 分页查询
	 * @param log
	 * @param currentPage 当前页
	 * @param pageSize 页总数
	 * @return
	 */
	LogExecution getLogList(Log log, int currentPage, int pageSize);
	
	/**
	 * 
	 * @param moduleName 操作名称
	 * @param content 获取用户名
	 * @param request ip
	 * @return
	 */
	LogExecution insertLog(String moduleName, String content, HttpServletRequest request) throws GlobalRuntimeException;
}
